<?php  //debug($form); ?>
<?php  $f=$form['Formstatus'] ?>
<h2 class="showNextDiv pointer"><?php __('Demand Acceptence');  ?></h2>
<div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Accepted ?'); ?></th>
                <th><?php  __('Acceptance date') ?></th>
                <th><?php __('Acceptance Notes')  ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php ($f['accepted']==1)?__('Yes'):__('No'); ?></td>
                <td><?php echo $f['accepted_date']  ?></td>
                <td><?php echo $f['accepted_notes']  ?></td>
            </tr>
        </tbody>
    </table>
    <div class="showNextDiv showNextBtn">Edit</div>
    <div class="isHidden">
        <?php echo $this->Form->create(null,array('url'=>'showFormStatus/'.$f['id']));  ?>
       
            <table class="showFields">

                <tr>
                    <th><?php  __('Accepted ?'); ?></th>
                    <td><?php echo $this->Form->input('accepted',array('type'=>'checkbox','checked'=>$f['accepted'],'label'=>false,'div'=>false)); ?></td>
                </tr><tr>
                    <th><?php  __('Acceptance date') ?></th>
                    <td><?php echo $this->Form->input('accepted_date',array('type'=>'text','default'=>$f['accepted_date'],'label'=>false,'div'=>false,'id'=>'acceptedDate'));  ?></td>
                </tr><tr>
                    <th><?php __('Acceptance Notes')  ?></th>
                    <td><?php echo $this->Form->input('accepted_notes',array('label'=>false,'default'=>$f['accepted_notes'],'div'=>false)); ?></td>
                </tr>

            </table>
        
        <?php  echo $this->Form->end(__('Submit',true)); ?>
    </div>
</div>
<h2 class="showNextDiv pointer"><?php __('Risks');  ?></h2>
<div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Has Risks'); ?></th>
                <th><?php  __('Risk Date') ?></th>
                <th><?php __('Risk Notes')  ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php ($f['has_risks']==1)?__('Yes'):__('No'); ?></td>
                <td><?php echo $f['risks_date']  ?></td>
                <td><?php echo $f['risks_notes']  ?></td>
            </tr>
        </tbody>
    </table>
    <div class="showNextDiv showNextBtn">Edit</div>
    <div class="isHidden">
        <?php echo $this->Form->create(null,array('url'=>'showFormStatus/'.$f['id']));  ?>

            <table class="showFields">

                <tr>
                    <th><?php  __('Has Risks ?'); ?></th>
                    <td><?php echo $this->Form->input('has_risks',array('type'=>'checkbox','checked'=>$f['has_risks'],'label'=>false,'div'=>false)); ?></td>
                </tr><tr>
                    <th><?php  __('Risk date') ?></th>
                    <td><?php echo $this->Form->input('risks_date',array('type'=>'text','label'=>false,'default'=>$f['risks_date'],'div'=>false,'id'=>'risksDate'));  ?></td>
                </tr><tr>
                    <th><?php __('Risk Notes')  ?></th>
                    <td><?php echo $this->Form->input('risks_notes',array('label'=>false,'default'=>$f['risks_notes'],'div'=>false)); ?></td>
                </tr>

            </table>

        <?php  echo $this->Form->end(__('Submit',true)); ?>
    </div>
</div>
<h2 class="showNextDiv pointer"><?php __('Compensatory Control (CC)');  ?></h2>
<div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Need CC'); ?></th>
                <th><?php  __('CC Date') ?></th>
                <th><?php __('CC Notes')  ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php ($f['needs_cc']==1)?__('Yes'):__('No'); ?></td>
                <td><?php echo $f['cc_date']  ?></td>
                <td><?php echo $f['cc_notes']  ?></td>
            </tr>
        </tbody>
    </table>
    <div class="showNextDiv showNextBtn">Edit</div>
    <div class="isHidden">
        <?php echo $this->Form->create(null,array('url'=>'showFormStatus/'.$f['id']));  ?>

            <table class="showFields">

                <tr>
                    <th><?php  __('needs CC ?'); ?></th>
                    <td><?php echo $this->Form->input('needs_cc',array('type'=>'checkbox','checked'=>$f['needs_cc'],'label'=>false,'div'=>false)); ?></td>
                </tr><tr>
                    <th><?php  __('CC date') ?></th>
                    <td><?php echo $this->Form->input('cc_date',array('type'=>'text','default'=>$f['cc_date'],'label'=>false,'div'=>false,'id'=>'ccDate'));  ?></td>
                </tr><tr>
                    <th><?php __('CC Notes')  ?></th>
                    <td><?php echo $this->Form->input('cc_notes',array('label'=>false,'div'=>false)); ?></td>
                </tr>

            </table>

        <?php  echo $this->Form->end(__('Submit',true)); ?>
    </div>
</div>
<h2 class="showNextDiv pointer"><?php __('Demand Acceptence with Compensatory Control (CC)');  ?></h2>
<div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Accepted with CC ?'); ?></th>
                <th><?php  __('Acceptance with CC date') ?></th>
                <th><?php __('Acceptance with CC Notes')  ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php ($f['accepted_cc']==1)?__('Yes'):__('No'); ?></td>
                <td><?php echo $f['accepted_cc_date']  ?></td>
                <td><?php echo $f['accepted_cc_notes']  ?></td>
            </tr>
        </tbody>
    </table>
    <div class="showNextDiv showNextBtn">Edit</div>
    <div class="isHidden">
        <?php echo $this->Form->create(null,array('url'=>'showFormStatus/'.$f['id']));  ?>

            <table class="showFields">

                <tr>
                    <th><?php  __('Accepted with CC?'); ?></th>
                    <td><?php echo $this->Form->input('accepted_cc',array('type'=>'checkbox','checked'=>$f['accepted_cc'],'label'=>false,'div'=>false)); ?></td>
                </tr><tr>
                    <th><?php  __('Acceptance with CC date') ?></th>
                    <td><?php echo $this->Form->input('accepted_cc_date',array('type'=>'text','default'=>$f['accepted_cc_date'],'label'=>false,'div'=>false,'id'=>'acceptedCCDate'));  ?></td>
                </tr><tr>
                    <th><?php __('Acceptance with CC Notes')  ?></th>
                    <td><?php echo $this->Form->input('accepted_cc_notes',array('label'=>false,'div'=>false)); ?></td>
                </tr>

            </table>

        <?php  echo $this->Form->end(__('Submit',true)); ?>
    </div>
</div>
<h2 class="showNextDiv pointer"><?php __('Demand Rejected');  ?></h2>
<div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('Rejected ?'); ?></th>
                <th><?php  __('Rejection Date') ?></th>
                <th><?php __('Rejection Notes')  ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php ($f['rejected']==1)?__('Yes'):__('No'); ?></td>
                <td><?php echo $f['rejected_date']  ?></td>
                <td><?php echo $f['rejected_notes']  ?></td>
            </tr>
        </tbody>
    </table>
    <div class="showNextDiv showNextBtn">Edit</div>
    <div class="isHidden">
        <?php echo $this->Form->create(null,array('url'=>'showFormStatus/'.$f['id']));  ?>

            <table class="showFields">

                <tr>
                    <th><?php  __('Rejected ?'); ?></th>
                    <td><?php echo $this->Form->input('rejected',array('type'=>'checkbox','checked'=>$f['rejected'],'label'=>false,'div'=>false)); ?></td>
                </tr><tr>
                    <th><?php  __('Rejection date') ?></th>
                    <td><?php echo $this->Form->input('rejected_date',array('type'=>'text','default'=>$f['rejected_date'],'label'=>false,'div'=>false,'id'=>'rejectedDate'));  ?></td>
                </tr><tr>
                    <th><?php __('Rejection Notes')  ?></th>
                    <td><?php echo $this->Form->input('rejected_notes',array('label'=>false,'div'=>false)); ?></td>
                </tr>

            </table>

        <?php  echo $this->Form->end(__('Submit',true)); ?>
    </div>
</div>
<h2 class="showNextDiv pointer"><?php __('Entity Internal Control (EICO) VISA');  ?></h2>
<div class="isHidden">
    <table class="formstatus">
        <thead>
            <tr>
                <th><?php  __('EICO VISA ?'); ?></th>
                <th><?php  __('EICO VISA Date') ?></th>
                <th><?php __('EICO VISA Notes')  ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><?php ($f['eico_visa']==1)?__('Yes'):__('No'); ?></td>
                <td><?php echo $f['eico_visa_date']  ?></td>
                <td><?php echo $f['eico_visa_notes']  ?></td>
            </tr>
        </tbody>
    </table>
    <div class="showNextDiv showNextBtn">Edit</div>
    <div class="isHidden">
        <?php echo $this->Form->create(null,array('url'=>'showFormStatus/'.$f['id']));  ?>

            <table class="showFields">

                <tr>
                    <th><?php  __('EICO VISA ?'); ?></th>
                    <td><?php echo $this->Form->input('eico_visa',array('type'=>'checkbox','checked'=>$f['eico_visa'],'label'=>false,'div'=>false)); ?></td>
                </tr><tr>
                    <th><?php  __('EICO VISA date') ?></th>
                    <td><?php echo $this->Form->input('eico_visa_date',array('type'=>'text','default'=>$f['eico_visa_date'],'label'=>false,'div'=>false,'id'=>'eicoVisaDate'));  ?></td>
                </tr><tr>
                    <th><?php __('EICO VISA Notes')  ?></th>
                    <td><?php echo $this->Form->input('eico_visa_notes',array('label'=>false,'div'=>false)); ?></td>
                </tr>

            </table>

        <?php  echo $this->Form->end(__('Submit',true)); ?>
    </div>
</div>
<script type="text/javascript">
		var dates = $( "#acceptedDate, #rejectedDate, #eicoVisaDate, #acceptedCCDate, #ccDate, #risksDate" ).datepicker({
			
			changeMonth: true,
                        dateFormat: 'yy-mm-dd'});

</script>

